package com.dolawing.phonecallapp.listenphonecall;

import android.content.Context;

public class BroadcastUnRepeate {
    private static BroadcastUnRepeate once = null;
    private boolean hasOffHook = false;
    private int callIdle = 1;
    private int CallRing = 1;
    private int CallOffHook = 1;
    public BroadcastUnRepeate(Context context){}
    public static BroadcastUnRepeate getInstance(Context context){
        if (once == null){
            synchronized (BroadcastUnRepeate.class){
                if (once == null){
                    once = new BroadcastUnRepeate(context);
                }
            }
        }
        return once;
    }

    public int getCallIdle() {
        return callIdle;
    }

    public void setCallIdle(int callIdle) {
        this.callIdle = callIdle;
    }

    public int getCallRing() {
        return CallRing;
    }

    public void setCallRing(int callRing) {
        CallRing = callRing;
    }

    public int getCallOffHook() {
        return CallOffHook;
    }

    public void setCallOffHook(int callOffHook) {
        CallOffHook = callOffHook;
    }

    public boolean isHasOffHook() {
        return hasOffHook;
    }

    public void setHasOffHook(boolean hasOffHook) {
        this.hasOffHook = hasOffHook;
    }
}
